//
//  WYHttpServer+WYAdvertise.m
//  CirclePush
//
//  Created by admin on 2018/5/22.
//  Copyright © 2018年 admin. All rights reserved.
//

#import "WYHttpServer+WYAdvertise.h"

@implementation WYHttpServer (WYAdvertise)
+(void)submissiondemandWithLinkeMan:(NSString *)linkman WithTelephone:(NSString *)telephone WithEmail:(NSString *)email WithMediaType:(NSString *)mediaType WithMediaId:(NSString *)mediaId  SucessBlock:(void(^)(BOOL success,id response,NSString *errorMessage))completion
{
    AFHTTPSessionManager *manager=[[WYHttpServer sharedInstance] requestManager];
    NSMutableDictionary *parm=[[WYHttpServer sharedInstance] requestParameters];
    [parm setValue:linkman forKey:@"linkman"];
    [parm setValue:telephone forKey:@"telephone"];
    [parm setValue:mediaType forKey:@"mediaType"];
    if (email.length) {
       [parm setValue:email forKey:@"email"];
    }
    if (mediaId) {
        [parm setValue:mediaId forKey:@"mediaId"];
    }
   // [parm setValue:ID forKey:@"id"];
    [[WYHttpServer sharedInstance] postOperationWithManger:manager Url:kUrlUpDateDemand WithPara:parm Success:^(BOOL success, id response, NSString *errorMsg) {
        completion(success,response,errorMsg);
    }];
    
    
    
    
}
@end
